<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>党组织添加页面</title>
  <link rel="stylesheet" href="../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../yl/style.css" />
  <link rel="stylesheet" href="../../yl/mobile.css" />
  <link rel="stylesheet" href="../../yl/easyui.css" />
  <link rel="stylesheet" href="../../yl/icon.css" />
</head>

<body>
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">添加党组织信息</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'party_organization', 'form': 'party_organization' })">
      <div class="yl-main">
        <div class="table_titel">
          <div class="titel">党组织信息</div>
        </div>
        <el-form ref="formRef" :model="party_organization" :rules="rules" label-width="120px" status-icon>
          <el-descriptions :column="1" size="large" border>
            <el-descriptions-item :width="20">
              <template #label>
                <div class="cell-item">党组织名称</div>
              </template>
              <el-form-item prop="Party_Organization_Name">
                <el-input ref="party_organization" v-model="party_organization.Party_Organization_Name"
                  class="borderless-input" placeholder="请输入党组织名称" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item :width="20">
              <template #label>
                <div class="cell-item">党组织名称</div>
              </template>
              <el-form-item prop="Party_Organization_Name">
                <el-input ref="party_organization" v-model="party_organization.Party_Organization_Name"
                  class="borderless-input" placeholder="请输入党组织名称" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">成立日期</div>
              </template>
              <el-form-item prop="Establishment_Date">
                <el-date-picker v-model="party_organization.Establishment_Date" format="YYYY-MM-DD"
                  value-format="YYYY-MM-DD" class="borderless-input" type="date" placeholder="请选择成立日期" size="large" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">组织类型</div>
              </template>
              <el-form-item prop="Party_Organization_Type">
                <el-select v-model="party_organization.Party_Organization_Type" placeholder="请选择组织织类型" size="large"
                  @change="handleTypeChange">
                  <el-option v-for="item in Type" :key="item.value" :label="item.label" :value="item.value" />
                </el-select>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">党组织级别</div>
              </template>
              <el-form-item prop="Party_Organization_Level">
                <el-select v-model="party_organization.Party_Organization_Level" placeholder="请选择党组织级别" size="large">
                  <el-option v-for="item in Level" :key="item.value" :label="item.label" :value="item.value" />
                </el-select>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">党组织地址</div>
              </template>
              <el-form-item prop="Party_Organization_Address">
                <el-input ref="party_organization" v-model="party_organization.Party_Organization_Address"
                  class="borderless-input" placeholder="请输入党组织地址" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">党组织所在地坐标集</div>
              </template>
              <el-form-item prop="Party_Organization_Coords" :rules="[{ required: true, validator:IS_Coords, trigger: 'blur' }]">
                <el-input ref="party_organization" class="borderless-input"
                  v-model="party_organization.Party_Organization_Coords" :rows="2" type="textarea"
                  placeholder="请输入党组织所在地坐标集" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">党组织负责人</div>
              </template>
              <el-form-item prop="Party_Organization_Captain_Number">
                <el-input ref="party_organization" v-model="party_organization.Party_Organization_Captain_Number"
                  class="borderless-input" placeholder="请输入党组织负责人" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">党组织所在机构</div>
              </template>
              <el-form-item prop="Enterprise_SeriralNumber">
                <el-select v-model="party_organization.Enterprise_SeriralNumber" placeholder="请选择党组织所在机构" size="large">
                  <el-option v-for="item in Enterprise" :key="item.value" :label="item.Agensies_Name" :value="item.Government_Agencies_SerialNumber" />
                </el-select>
              </el-form-item>
            </el-descriptions-item>
          </el-descriptions>
        </el-form>
      </div>
    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" plain @click="handleSubmit" :loading="loading">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../yl/vue.js"></script>
<script src="../../config/config.js"></script>
<script src="../../yl/index.js"></script>
<script src="../../yl/zh-cn.mjs"></script>
<script src="../../yl/index.iife.min.js"></script>
<script src="../../yl/jquery.min.js"></script>
<script src="../../utils/jquery.cookie.js"></script>
<script src="../../yl/jquery.easyui.min.js"></script>
<script src="../../yl/jquery.easyui.mobile.js"></script>
<script src="../../yl/moment.min.js"></script>
<script src="../../api/request.js"></script>
<script src="./js/party_organizationAdd.js"></script>

</html>